﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Nova_Common
{
    public static class ObjectEx
    {
        public static int _ToInt32(this object obj)
        {
            return SafeConvert.ToInt32(obj);
        }


        public static decimal _ToDecimal(this object obj)
        {
            return SafeConvert.ToDecimal(obj);
        }

        public static string _ToString(this object obj)
        {
            return SafeConvert.ToString(obj);
        }

        public static DateTime _ToDateTime(this object obj)
        {
            return SafeConvert.ToDateTime(obj);
        }

        public static byte _ToByte(this object obj)
        {
            return SafeConvert.ToByte(obj);
        }

        public static char _ToChar(this object obj)
        {
            return SafeConvert.ToChar(obj);
        }


        
    }
}
